package com.project.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 收件箱对象
 */
@TableName("t_inbox")
public class InboxBean {
    /**
     * 收件箱id
     */
    @TableId(value = "pk_inboxId", type = IdType.AUTO)
    private Integer inboxId;
    /**
     * 收件状态
     */
    @TableField("i_readingStatus")
    private String readingStatus = "未阅读";
    /**
     * 邮件对象
     */
    @TableField(exist = false)
    private MailBean mail;
    /**
     * 邮件id
     */
    @TableField("fk_mailId")
    private Integer mailId;
    /**
     * 收件人id
     */
    @TableField("fk_receiverId")
    private Integer receiverId;

    public InboxBean() {
    }

    public InboxBean(Integer mailId, Integer receiverId) {
        this.mailId = mailId;
        this.receiverId = receiverId;
    }

    public Integer getInboxId() {
        return inboxId;
    }

    public void setInboxId(Integer inboxId) {
        this.inboxId = inboxId;
    }

    public String getReadingStatus() {
        return readingStatus;
    }

    public void setReadingStatus(String readingStatus) {
        this.readingStatus = readingStatus;
    }

    public MailBean getMail() {
        return mail;
    }

    public void setMail(MailBean mail) {
        this.mail = mail;
    }

    public Integer getMailId() {
        return mailId;
    }

    public void setMailId(Integer mailId) {
        this.mailId = mailId;
    }

    public Integer getEmId() {
        return receiverId;
    }

    public void setEmId(Integer emId) {
        this.receiverId = emId;
    }

    @Override
    public String toString() {
        return "InboxBean{" +
                "inboxId=" + inboxId +
                ", readingStatus='" + readingStatus + '\'' +
                ", mail=" + mail +
                ", mailId=" + mailId +
                ", emId=" + receiverId +
                '}' + "\n";
    }
}